package com.dlu.safe_construction.mapper;

import com.dlu.safe_construction.model.Owner;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Created by  lijiaxing on 2022/3/31 13:23
 *
 * @author lijiaxing
 */
public interface OwnerMapper {
    int deleteByPrimaryKey(String ownerId);

    int deleteByOwnerPhone(String ownerPhone);

    int insert(Owner record);

    int insertSelective(Owner record);

    Owner selectByPrimaryKey(String ownerId);

    List<Owner> selectAll();

    List<Owner> selectByOwnerName(String ownerName);

    List<Owner> selectByOwnerPhone(String ownerPhone);

    List<Owner> selectByOwnerStatus(Integer ownerStatus);

    int updateByPrimaryKeySelective(Owner record);

    int updateByPrimaryKey(Owner record);

    int updateBatch(List<Owner> list);

    int updateBatchSelective(List<Owner> list);

    int batchInsert(@Param("list") List<Owner> list);
}